import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        countryName:'中国',
        countryNumber:'+86',
        // addressInfoArr:[]
    },
    mutations: {
        setCountryMsg(state,stark){
            this.state.countryName=stark.countryName
            this.state.countryNumber=stark.countryNumber
        },
        // setAddressInfoArr(state,stark){
        //     console.log(state,stark);
        //     this.state.addressInfoArr.push(stark.addressInfo)
        // }
    }
})

export default store

